<template>
    <div>输入
        <input :value="value" @input="input"/>
    </div>
</template>

<script>
    export default {
        name: "MyInput",
        props: {
            value: {type: [String, Number]}
        },
        methods: {
            input(e) {
                this.$emit('input', e.target.value)
            }
        }
    }
</script>

<style scoped>

</style>
